package com.jiazhong.cloud.gateway.example.gateway.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiazhong.cloud.commons.bean.Power;
import com.jiazhong.cloud.commons.util.JsonResult;
import com.jiazhong.cloud.commons.util.ResultTool;
import com.jiazhong.cloud.gateway.example.gateway.mapper.PowerMapper;
import com.jiazhong.cloud.gateway.example.gateway.service.PowerService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class PowerServiceImpl extends ServiceImpl<PowerMapper, Power> implements PowerService {
    @Resource
    private PowerMapper powerMapper;

    @Override
    public JsonResult findPowersByStudentId(String id) {
        return ResultTool.success(powerMapper.findPowersByStudentId(id));
    }
}
